<?php if(count($pending_requests)): ?>
<?php foreach($pending_requests as $pending_request):?>  
<li>
                            <div class="list_main_container">
                                <img src="<?php echo $pending_request->sender->user_profile->photo->path(false,'mini_square');?>" alt="<?php echo $pending_request->sender->user_profile->name.' '.$pending_request->sender->user_profile->surname ?>">
                                <div class="list_user_link">

                                    <a href="/desktop/<?php echo $pending_request->sender->user_profile->url ?>" class="desktop_link" title="<?php echo __('show desktop') ?>"></a>
                                    <a href="/profile/<?php echo $pending_request->sender->user_profile->url ?>" class="profile_link" title="<?php echo __('show profile') ?>"></a>

                                </div> 
                                <div>
                                    <p class="mini_name"><?php echo $pending_request->sender->user_profile->name.' '.$pending_request->sender->user_profile->surname ?></p>
                                    <p class="mini_info">4 mutual contacts</p>
                                </div>
                                <div style="float: right; padding-right: 5px">
                                    <a href="/contact/approve_request/<?php echo $pending_request->id ?>" class="button_blue pending_request"><?php echo __('Confirm') ?></a>
                                    <a href="/contact/not_approve_request/<?php echo $pending_request->id ?>" title="<?php echo __('Hides the invitation. (The sender will not be notified about it)')?>" class="button_grey pending_request"><?php echo __('Not now')?></a>                                             
                                </div>
                            </div>                         
<?php endforeach ?>
<?php else: ?>
            <li>
                <div class="list_main_container">
                    <div class="list_standard_entre" style="text-align: center; float: none; padding-left:0px"><?php echo __('no invitations to show') ?></div>                   
                </div>
            </li>
<?php endif ?>